<template>
  <div>
    <div class="demo-input-suffix gl_searchBox">
      <el-row :gutter="20">
        <el-col :md="6" :lg="4">
          <p>订购状态</p>
          <el-select size="mini" placeholder="请选择道馆状态" filterable>
            <!-- <el-option v-for="item in items" :key="item" :label="item" :value="item" /> -->
          </el-select>
        </el-col>
        <el-col :md="8" :lg="6">
          <p>经营模式</p>
          <el-date-picker v-model="value1" size="mini" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
        </el-col>
        <el-col :span="4">
          <el-button style="margin-top:27px" type="primary" size="mini">{{ $t('button.query') }}</el-button>
          <el-button style="margin-top:27px" type="warning" size="mini">{{ $t('button.Reset') }}</el-button>
        </el-col>
      </el-row>
    </div>
    <el-table :data="tableData" size="mini" stripe>
      <el-table-column prop="type" label="订购服务" />
      <el-table-column prop="type" label="周期" width="180" />
      <el-table-column prop="type" label="单价" width="180" />
      <el-table-column prop="date" label="数量" width="180" />
      <el-table-column prop="name" label="实付" width="180" />
    </el-table>
    <div align="center" class="gl_py_10">
      <el-pagination
        :current-page="clubPageListQO.pageIndex"
        :page-size="clubPageListQO.pageSize"
        :total="totalPage"
        layout="total,sizes,prev,pager,next,jumper"
        :page-sizes="[10, 20, 30, 40]"
        @size-change="sizeChange"
        @current-change="pageIndexChange"
      />
    </div>
  </div>
</template>

<script>
import { ClubPageListQO } from '@/lib/form/club';
export default {
  data() {
    return {
      clubPageListQO: new ClubPageListQO(),
      conten: '',
      tableData: [
        {
          type: '财务管理员',
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        },
        {
          type: '财务管理员',
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1517 弄'
        },
        {
          type: '财务管理员',
          date: '2016-05-01',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1519 弄'
        },
        {
          type: '财务管理员',
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }
      ],
      totalPage: 0
    };
  },
  methods: {
    getPageData() {
      this.totalPage = 0;
    },
    sizeChange: function(pageSize) {
      this.clubPageListQO.pageSize = pageSize;
      this.getPageData();
    },
    pageIndexChange: function(pageIndex) {
      this.clubPageListQO.pageIndex = pageIndex;
      this.getPageData();
    }
  }
};
</script>
<style lang="scss" scoped>
.authority-type {
  .el-button {
    margin: 10px 30px 0;
    box-sizing: border-box;
  }
}
</style>
